package com.neusoft.neuiotms.dcom.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.jpa.model.AbstractModel;
import com.neusoft.bizcore.web.jpa.model.Comment;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "neuiot_month_unfinished_desc")
@org.hibernate.annotations.Table(appliesTo = "neuiot_month_unfinished_desc", comment = "月报未完成项说明表")
public class MonthUnfinishedItemDesc extends AbstractModel {

    private static final long serialVersionUID = 1L;

    /** 未完成服务项 */
    @Length(max = 255, message = "未完成服务项不能超过{max}位")
    @Column(length = 255, nullable = true)
    @Comment("varchar(255) NULL DEFAULT NULL COMMENT '未完成服务项'")
    private String name;

    /** 未完成原因 */
    @Length(max = 255, message = "未完成原因不能超过{max}位")
    @Column(length = 255, nullable = true)
    @Comment("varchar(255) NULL DEFAULT NULL COMMENT '未完成原因'")
    private String reason;

    /** 计划及处理办法 */
    @Length(max = 255, message = "计划及处理办法不能超过{max}位")
    @Column(length = 255, nullable = true)
    @Comment("varchar(255) NULL DEFAULT NULL COMMENT '计划及处理办法'")
    private String solution;

    /** 运维工程师 */
    @Length(max = 255, message = "运维工程师不能超过{max}位")
    @Column(length = 255, nullable = true)
    @Comment("varchar(255) NULL DEFAULT NULL COMMENT '运维工程师'")
    private String operationName;

    /** 运维工程师 */
    @Length(max = 255, message = "运维工程师不能超过{max}位")
    @Column(length = 255, nullable = true)
    @Comment("varchar(255) NULL DEFAULT NULL COMMENT '运维工程师'")
    private String operationCode;

    /** 关联月报 */
    @ManyToOne
    private MonthWeekly month;
}
